{load header}
<!--/H-->

    <!-- 内容区 -->
    <div id="main-content">
        <div id="top-alert" class="fixed alert alert-error" style="display: none;">
            <button class="close fixed" style="margin-top: 4px;">&times;</button>
            <div class="alert-content">这是内容</div>
        </div>
        <div id="main" class="main">
            
            <!-- nav -->
                        <!-- nav -->
            

            
	<div class="main-title">
		<h2>页面管理</h2>
	</div>
	<div class="tab-wrap">
		<ul class="tab-nav nav">
			<li class="current"><a href="{eval echo site_url('contents/index')}">单页列表</a></li>
			<li><a href="{eval echo site_url('contents/page_add')}">添加单页</a></li>
		</ul>
		
		<div class="tab-content">
			
			<!-- 数据列表 -->
			<div class="data-table table-striped">
				<table>
					<thead>
						<tr>
						<th class="">页面名称</th>
						<th class="">页面识标</th>
						<th class="">页面分类</th>
						<th class="">状态</th>
						<th class="">操作</th>
						</tr>
					</thead>
					<tbody>
						<!--{loop $list $k1 $val}-->
						<tr>
							<td>{$val['title']}</td>
							<td>{$val['code']}</td>
							<td>{$val['cate_name']}</td>
							<td>
							<a title="<!--{if ($val['status'])=='0' }-->点击启用<!--{else}-->点击关闭<!--{/if}-->" href="{eval echo site_url('contents/page_setstatus').'?ids='.$val['id'].'&status='.abs(1-$val['status'])}" class="ajax-get"><!--{if ($val['status'])=='0' }--><span style="color:#ff0000">关闭</span><!--{else}-->启用<!--{/if}--></a>
							</td>
							<td>
                                                        <a title="编辑" href="{eval echo site_url('contents/page_edit').'?id='.$val['id']}">编辑</a>
							<a title="删除" href="{eval echo site_url('contents/page_remove').'?id='.$val['id']}" class="confirm ajax-get">删除</a>
							</td>
						</tr>
						<!--{/loop}-->
					</tbody>
				</table>
				<!-- 分页 -->
				<div class="page">
					<div>
					{$showpage}
					<span class="rows">共 {$Total} 条记录</span>
					</div>
				</div>
			</div>
	
		</div>
	</div>

<!--F-->{load footer}